package com.ayne.game.screen;

import com.ayne.game.Ayne;
import com.ayne.game.engine.controller.GameScreenController;
import com.ayne.game.engine.view.GameScreenView;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL10;

public class GameScreen implements Screen {
	
	private Ayne game;
	private GameScreenView view;
	
	public GameScreen(Ayne game) {
		this.game = game;
		this.view = new GameScreenView(new GameScreenController());
	}

	@Override
	public void render(float delta) {
		Gdx.gl.glClearColor(0, 0, 0, 1);
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		
		this.view.render();
	}

	@Override
	public void resize(int width, int height) {
	}

	@Override
	public void show() {
	}

	@Override
	public void hide() {
		dispose();
	}

	@Override
	public void pause() {
	}

	@Override
	public void resume() {
	}

	@Override
	public void dispose() {
	}
}
